<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>闭包的运用</title>
  <style>
      li {
          width: 100px;
          height: 50px;
          background-color: pink;

          list-style: none;
          border-bottom: 1px solid black;
          text-align: center;
      }
  </style>
</head>
<body>
<ul>
  <li>1</li>
  <li>2</li>
  <li>3</li>
  <li>4</li>
  <li>5</li>
</ul>
</body>
<script src="./04closure.js"></script>
<script>
  var lis = document.getElementsByTagName('li')
  console.log(lis)
  clickLi(lis)
</script>

</html>